package com.neu.base;

public class AuthContants {

    /**
     * 请求头中携带token的key
     */
    public static final String TOKEN_HEADER = "Authorization";


    /**
     * redis中存储token的key
     */
    public static final String REDIS_KEY_AUTH_TOKEN = "auth:token:";
    /**
     * redis中存储验证码的key
     */
    public static final String REDIS_KEY_AUTH_CAPTCHA = "auth:captcha:";
    /**
     * redis中存储用户信息的key
     */
    public static final String REDIS_KEY_AUTH_USER_DETAIL = "auth:user:detail:";

    /**
     * 刷新token的阈值
     */
    public static final long REFRESH_TOKEN_THRESHOLD = 60 * 1000 * 10;//10分钟
}
